<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../template/taglib.jsp"%>

<jsp:include page="../template/header.jsp" />

<%-- content template --%>
<jsp:include page="../template/contentheader.jsp" />
<%-- put content here --%>
<form name="form" action="/LeaveApplicationProcessingSystem/Login"
	method="post">
	<div align="center" style="width: 990px;">

		<table cellpadding="4" cellspacing="4" border="0" width="990">
			<tr>
				<td colspan="2" align="center">
					<h1>${ empty user ? "Staff" : user } Login Page</h1></td>
			</tr>
			<tr>
				<td width="50%" align="right">Username</td>
				<td><input type="text" name="username"
					value="${ empty username ? '' : username }" /> <c:if
						test="${ not empty usernamemessage }">${ usernamemessage }</c:if>
				</td>
			</tr>
			<tr>
				<td width="50%" align="right">Password</td>
				<td><input type="password" name="password"> <c:if
						test="${ not empty passwordmessage }">${ passwordmessage }</c:if>
				</td>
			</tr>
			<c:if test="${ not empty message }">
				<tr>
					<td>&nbsp;</td>
					<td>${ message }</td>
				</tr>
			</c:if>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" name="login" value="Login" />
				<c:if test="${user == 'Admin'}"><input type="hidden" name="admin" value="true" /></c:if>
				</td>
			</tr>
		</table>
	</div>
</form>
<jsp:include page="../template/contentfooter.jsp" />
<%-- end of content template --%>

<jsp:include page="../template/footer.jsp" />